import request from "@/libs/request";

const basePath = '/appcloud-data' ;

export const apiUrls = {
	getCzLogById : basePath + '/api/log/getInstLog',
	geInstLogById : basePath + '/api/log/getInstLogById/',
	saveInstLog : basePath + '/api/log/save' ,
	updateInstLog : basePath + '/api/log/update' ,
  getInstList : basePath + '/api/appInst/getAppInstList',
}


// 根据条件查询应用实例列表信息
export async function getInstList(params){
	return request( apiUrls.getInstList, {
      method:'POST',
      body:params
  })
}


// 根据实例id和操作查询实例日志
export async function getCzLogById(params){
	return request( apiUrls.getCzLogById, {
      method:'POST',
      body:params
  })
}

// 根据实例id查询实例日志
export async function geInstLogById(id){
	return request( apiUrls.geInstLogById + id , {
      method:'GET',
  })
}
